package com.dianrui.moonfire.activity;

import android.view.KeyEvent;
import android.view.View;
import android.widget.TextView;

import com.dianrui.moonfire.R;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Description:更多
 * User: luoziyin
 * Date: 2020-8-17
 */
public class MoreActivity extends BaseActivity {
    @BindView(R.id.title)
    TextView title;


    @Override
    public int getContentViewId() {
        return R.layout.more;
    }

    @Override
    public void initView() {
        customInit(true);
        title.setText(getString(R.string.more_txt));

    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.back, R.id.click_my_help, R.id.click_feedback})
    public void onViewClicked(View view) {

        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.click_my_help:
                JumpActivitys(HelpActivity.class);
                break;
            case R.id.click_feedback:
                JumpActivitys(FeedBackActivity.class);
                break;
            default:
                break;
        }
    }


    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if (keyCode == KeyEvent.KEYCODE_BACK) {
            finish();
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }
}
